package com.ray.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.ray.bean.UserAddress;
import com.ray.service.UserService;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@Component
@Service
public class UserServiceImpl implements UserService {


    public List<UserAddress> getUserAddress(Integer userId) {
        List<UserAddress> userAddresses = Arrays.asList(new UserAddress(1,"张三","北京"),new UserAddress(2,"lisi","成都"));
        return userAddresses;
    }
}
